package poo.alberi;

import java.util.LinkedList;

public class NNode<E> implements Nodo<E> {

	private Nodo<E> parent;
	private E elem;
	private LinkedList<Nodo<E>> children;

	public NNode(E e, Nodo<E> p) {
		elem = e;
		parent = p;
		children = new LinkedList<Nodo<E>>();
	}

	public E getElement() {
		return elem;
	}

	public void setElement(E e) {
		elem = e;
	}

	public Nodo<E> getParent() {
		return parent;
	}

	public void setParent(Nodo<E> p) {
		parent = (NNode<E>) p;
	}

	public LinkedList<Nodo<E>> getChildren() {
		return children;
	}
}
